package com.ruoyi.ora.mapper;

import java.util.List;
import com.ruoyi.ora.domain.VoiceRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 语音转写记录Mapper接口
 * 
 * @author liuwp
 * @date 2024-11-14
 */
public interface VoiceRecordMapper 
{
    /**
     * 查询语音转写记录
     * 
     * @param id 语音转写记录主键
     * @return 语音转写记录
     */
    public VoiceRecord selectVoiceRecordById(Long id);

    /**
     * 查询语音转写记录列表
     * 
     * @param voiceRecord 语音转写记录
     * @return 语音转写记录集合
     */
    public List<VoiceRecord> selectVoiceRecordList(VoiceRecord voiceRecord);

    public List<VoiceRecord> selectVoiceRecordListCollection(VoiceRecord voiceRecord);

    public List<VoiceRecord> selectVoiceRecordListDeviceUser(VoiceRecord voiceRecord);

    /**
     * 可以业务主键查询一条语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @return 语音转写记录集合
     */
    public VoiceRecord selectOneVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 新增语音转写记录
     * 
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int insertVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 修改语音转写记录
     * 
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int updateVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 条件修改语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @param voiceRecord 语音转写记录条件
     * @return 结果
     */
    public int updateVoiceRecordCondition(@Param("voiceRecord") VoiceRecord voiceRecord, @Param("voiceRecordCondition") VoiceRecord voiceRecordCondition);

    /**
     * 删除语音转写记录
     * 
     * @param id 语音转写记录主键
     * @return 结果
     */
    public int deleteVoiceRecordById(Long id);

    /**
     * 条件删除语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int deleteVoiceRecordByCondition(VoiceRecord voiceRecord);

    /**
     * 批量删除语音转写记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVoiceRecordByIds(Long[] ids);
}
